#!/usr/bin/env ruby

module RedBook

	@config[:renderers] = ['console', 'text', 'yaml', 'xml', 'csv']

	@config[:plugins] = ['twitter', 'tracker', 'archiver', 'csv']

	@config[:prompt] = '"redbook@#{@logger.alias}[#{@logger.current_dataset.length}/#{@logger.current_log.length}]#> "'

	@config[:shortcuts] = {
		:test 	=> ":use test",
		:def 		=> ":use default",
		:today	=> ":select :plain :from today",
		:cf			=> ":log Coffee Break :with _break",
		:lunch 	=> ":log Lunch Break :with _break",
		:work 	=> ":log Working Day",
		:mail 	=> ":log Checking/writing emails :with mail",
		:ph 		=> ":log Phone Call :with call",
		:b 			=> ":backup",
		:a 			=> ":archive",
		:"\t" 	=> ":finish",
		:"\e"		=> ":quit",
		:"\s" 	=> ":clear",
		:"5" 		=> ":select :plain :last 5",
		:"10" 	=> ":select :plain :last 10",
		:pend 	=> ":select :pending :from today at 8 am",
		:done 	=> ":select :completed :from today at 8 am",
		:plain 	=> ":select :plain :from today at 8 am",
		:int 		=> ":int",
		:spent 	=> ":timespent",
	}

	@config[:time_format] = "%a %b %d %Y - %I:%M:%S %p"
	@config[:backups_folder] = ""
	@config[:archives_folder] = ""
	@config[:default_output_file] = "log.txt"	

	@config[:twitter] = {
		:username => "",
		:password => "",
	}

	# Character Encodings -- Please change!
	@config[:charsets] = {
		:input 	=> "CP437", # MS DOS
		:output => "UTF-8",
		:log		=> "UTF-8"
	}

	@config[:csv] = {
		:separator 	=> ",",
		:duration_time_unit => "seconds",
		:msproject_fields		=> false,
		:headers 		=> {
			:type 	  		=> "Type",
			:value 	  		=> "value",
			:message  		=> "Message",
			:start_date		=> "Start Date",
			:end_date			=> "End Date",
			:duration			=> "Duration",
			:tags					=> "Tags"
		}	
	}

	@config[:logs] = ["log.yml", "test.yml"]

	@config[:macros] = {
		:send 			=> ":log <:message> :with _twitter _to:<:to>",
		:status			=> ":log <:message> :with _twitter",
		:break			=> ":log <:message> :with _break",
		:conc				=> ":log <:message> :with _concurrent",
		:int				=> ":log Interruption :with interruption",
		:timespent	=> ":select :duration :from today at 8 am"
	}
		
end


